﻿@model iHouse.Web.Infrastructure.NoteFormView
@{
    ViewBag.Title = Resources.EditNoteTitle;
    Layout = "~/Views/Shared/_Root.cshtml";
}
<div class="logon-container">
    @using (Html.BeginForm())
    { 
        <p>
            <label>
                @Resources.NoteTitle
            </label>
            @Html.EditorFor(x => x.Title)
            @Html.ValidationMessageFor(x => x.Title)
        </p>
        <p>
            <label>
                @Resources.NoteCategoryName
            </label>
            @Html.DropDownListFor(x => x.CategoryID, Model.Categories)
        </p>
        <p>
            <label>
                @Resources.NoteDescription
            </label>
            @Html.TextAreaFor(x => x.Description, new { @class = "textareafield" })
        </p>
        <p>
            <label>
                @Resources.NoteReference
            </label>
            @Html.TextAreaFor(x => x.Reference, new { @class = "textareafield" })
        </p>
        <p class="clearfix">
            <input type="submit" id="entitySubmit" value="@Resources.Submit" />
        </p>
    }
</div>
<script type="text/javascript">
    Sys.require(["jquery.validate.unobtrusive", "MicrosoftMvcAjax", "jquery.unobtrusive-ajax"]);
</script>